package com.huidao.service;

/**
 * 关于活动类型的逻辑方法
 * 
 * @author Administrator
 *
 */
public class ActivityTypeService {
	private static double total = VipCardService.getTotalPrice();
	public double setFullCut() {
		if (total > 100) {
			total = total - 25;
			return total;
		}
		if (total > 50) {
			total = total - 10;
			return total;
		}
		if (total > 30) {
			total = total - 3;
			return total;
		}
		return total;
	}

	public double setActivityCount() {
		if (total < 50) {
			return total;
		}
		return total * 90 / 100.0;
	}

	/**
	 * @return the total
	 */
	public static double getTotal() {
		return total;
	}
}